package com.cssw.fyzb.web.vo;

import java.util.ArrayList;
import java.util.List;

public class TreeNodeVo {
    protected String id;

    protected String pId;

    protected String name;

    protected List<TreeNodeVo> children = new ArrayList<TreeNodeVo>();

    public void add(TreeNodeVo node) {
        children.add(node);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<TreeNodeVo> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNodeVo> children) {
        this.children = children;
    }
}
